package org.fsconnector.cci;

public class FSConnectionSpec {

	private String rootDir;

	public FSConnectionSpec() {}

	public FSConnectionSpec(String rootDir) {
		setRootDir(rootDir);
	}

	@Override
	protected Object clone() throws CloneNotSupportedException {
		return new FSConnectionSpec(rootDir);
	}

	@Override
	public boolean equals(Object obj) {
		if(!(obj instanceof FSConnectionSpec)) return false;
		FSConnectionSpec other = (FSConnectionSpec)obj;
		return getRootDir().equals(other.getRootDir());
	}

	@Override
	public String toString() {
		return new StringBuilder().append('[').append(rootDir).append(']').toString();
	}

	public String getRootDir() {
		return rootDir;
	}

	public void setRootDir(String rootDir) {
		this.rootDir = rootDir;
	}

}
